package com.movie.model;

import java.io.Serializable;
import java.time.LocalDateTime;

public class Screening implements Serializable {
    private String id;
    private String movieId;
    private LocalDateTime startTime;
    private double price;
    private int seatsAvailable;

    public Screening(String id, String movieId, LocalDateTime startTime, double price, int seatsAvailable) {
        this.id = id;
        this.movieId = movieId;
        this.startTime = startTime;
        this.price = price;
        this.seatsAvailable = seatsAvailable;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMovieId() {
        return movieId;
    }

    public void setMovieId(String movieId) {
        this.movieId = movieId;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public int getSeatsAvailable() {
        return seatsAvailable;
    }

    public void setSeatsAvailable(int seatsAvailable) {
        this.seatsAvailable = seatsAvailable;
    }

    @Override
    public String toString() {
        return "Screening{" +
                "id='" + id + '\'' +
                ", movieId='" + movieId + '\'' +
                ", startTime=" + startTime +
                ", price=" + price +
                ", seatsAvailable=" + seatsAvailable +
                '}';
    }
}